import http from '@/utils/http'

// 获取统计数据
export const getStatisticsDataAPI = () => {
  return http({
    url: '/statistics',
    method: 'GET'
  })
}

export const getStatisticsOrderDataAPI = () => {
  return http({
    url: '/statistics/order',
    method: 'GET'
  })
}

// 获取低库存商品列表
export const getLowStockListAPI = () => {
  return http({
    url: '/goods/inventoryWarning',
    method: 'GET'
  })
}

// 获取商品列表
export const getProductListAPI = () => {
  return http({
    url: '/goods/allGoods',
    method: 'GET'
  })
}

// 获取用户列表
export const getUserListAPI = () => {
  return http({
    url: '/user/userList',
    method: 'GET'
  })
}
